package com.weaver.drools.common.entity;

import java.io.Serializable;
import javax.persistence.*;
import java.util.Set;


/**
 * The persistent class for the D_VOLUMECATALOGSORT_840 database table.
 * 
 */
@Entity
@Table(name="D_VOLUMECATALOGSORT_840")
public class DVolumecatalogsort840 implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	@Id
	@SequenceGenerator(name="D_VOLUMECATALOGSORT_840_VOLUMECATALOGSORTID_GENERATOR",sequenceName="SE_D_VOLUMECATALOGSORT_840",allocationSize=1)
	@GeneratedValue(strategy=GenerationType.SEQUENCE, generator="D_VOLUMECATALOGSORT_840_VOLUMECATALOGSORTID_GENERATOR")
	private Long volumecatalogsortid;

	private Long isdeleted;

	private Long isendnode;

	private String remark;

	@Column(name="RESERVED_1")
	private String reserved1;

	@Column(name="RESERVED_2")
	private String reserved2;

	@Column(name="RESERVED_3")
	private String reserved3;

	private Long sortnumer;

	private String volumecatalogcode;

	private String volumecatalogname;

	//bi-directional many-to-one association to DVolumecatalogsort840
	@ManyToOne
	@JoinColumn(name="P_VOLUMECATALOGSORTID")
	private DVolumecatalogsort840 DVolumecatalogsort840;

	//bi-directional many-to-one association to DVolumecatalogsort840
	@OneToMany(mappedBy="DVolumecatalogsort840")
	private Set<DVolumecatalogsort840> DVolumecatalogsort840s;

	//bi-directional many-to-one association to EAqPnlVolumecatalogitem574
	@OneToMany(mappedBy="DVolumecatalogsort840")
	private Set<EAqPnlVolumecatalogitem574> EAqPnlVolumecatalogitem574s;

	public DVolumecatalogsort840() {
	}

	public Long getVolumecatalogsortid() {
		return this.volumecatalogsortid;
	}

	public void setVolumecatalogsortid(Long volumecatalogsortid) {
		this.volumecatalogsortid = volumecatalogsortid;
	}

	public Long getIsdeleted() {
		return this.isdeleted;
	}

	public void setIsdeleted(Long isdeleted) {
		this.isdeleted = isdeleted;
	}

	public Long getIsendnode() {
		return this.isendnode;
	}

	public void setIsendnode(Long isendnode) {
		this.isendnode = isendnode;
	}

	public String getRemark() {
		return this.remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	public String getReserved1() {
		return this.reserved1;
	}

	public void setReserved1(String reserved1) {
		this.reserved1 = reserved1;
	}

	public String getReserved2() {
		return this.reserved2;
	}

	public void setReserved2(String reserved2) {
		this.reserved2 = reserved2;
	}

	public String getReserved3() {
		return this.reserved3;
	}

	public void setReserved3(String reserved3) {
		this.reserved3 = reserved3;
	}

	public Long getSortnumer() {
		return this.sortnumer;
	}

	public void setSortnumer(Long sortnumer) {
		this.sortnumer = sortnumer;
	}

	public String getVolumecatalogcode() {
		return this.volumecatalogcode;
	}

	public void setVolumecatalogcode(String volumecatalogcode) {
		this.volumecatalogcode = volumecatalogcode;
	}

	public String getVolumecatalogname() {
		return this.volumecatalogname;
	}

	public void setVolumecatalogname(String volumecatalogname) {
		this.volumecatalogname = volumecatalogname;
	}

	public DVolumecatalogsort840 getDVolumecatalogsort840() {
		return this.DVolumecatalogsort840;
	}

	public void setDVolumecatalogsort840(DVolumecatalogsort840 DVolumecatalogsort840) {
		this.DVolumecatalogsort840 = DVolumecatalogsort840;
	}

	public Set<DVolumecatalogsort840> getDVolumecatalogsort840s() {
		return this.DVolumecatalogsort840s;
	}

	public void setDVolumecatalogsort840s(Set<DVolumecatalogsort840> DVolumecatalogsort840s) {
		this.DVolumecatalogsort840s = DVolumecatalogsort840s;
	}

	public DVolumecatalogsort840 addDVolumecatalogsort840(DVolumecatalogsort840 DVolumecatalogsort840) {
		getDVolumecatalogsort840s().add(DVolumecatalogsort840);
		DVolumecatalogsort840.setDVolumecatalogsort840(this);

		return DVolumecatalogsort840;
	}

	public DVolumecatalogsort840 removeDVolumecatalogsort840(DVolumecatalogsort840 DVolumecatalogsort840) {
		getDVolumecatalogsort840s().remove(DVolumecatalogsort840);
		DVolumecatalogsort840.setDVolumecatalogsort840(null);

		return DVolumecatalogsort840;
	}

	public Set<EAqPnlVolumecatalogitem574> getEAqPnlVolumecatalogitem574s() {
		return this.EAqPnlVolumecatalogitem574s;
	}

	public void setEAqPnlVolumecatalogitem574s(Set<EAqPnlVolumecatalogitem574> EAqPnlVolumecatalogitem574s) {
		this.EAqPnlVolumecatalogitem574s = EAqPnlVolumecatalogitem574s;
	}

	public EAqPnlVolumecatalogitem574 addEAqPnlVolumecatalogitem574(EAqPnlVolumecatalogitem574 EAqPnlVolumecatalogitem574) {
		getEAqPnlVolumecatalogitem574s().add(EAqPnlVolumecatalogitem574);
		EAqPnlVolumecatalogitem574.setDVolumecatalogsort840(this);

		return EAqPnlVolumecatalogitem574;
	}

	public EAqPnlVolumecatalogitem574 removeEAqPnlVolumecatalogitem574(EAqPnlVolumecatalogitem574 EAqPnlVolumecatalogitem574) {
		getEAqPnlVolumecatalogitem574s().remove(EAqPnlVolumecatalogitem574);
		EAqPnlVolumecatalogitem574.setDVolumecatalogsort840(null);

		return EAqPnlVolumecatalogitem574;
	}

}